extends "../shengnvzhende-3/shengnvzhende-3.gd"


var baseId = ""
var upText1 = "神圣新星伤害提高40%"
var upText2 = "神圣新星范围+1"
func _extInit():
	._extInit()
	lv = 4             #等级的设置
	addSkill("每{cd}秒对目标周围2格的敌人造成[雷击*2.5]的技能伤害，并附加5层<失明>", "神圣新星", "holyBurst", 10)

func _castCdSkill(id):
	._castCdSkill(id)
	if id == "holyBurst":
		holyBurst()
	
func holyBurst():
	for i in getCellChas(aiCha.cell, p42, 1):
		castBuff(i, buff.b_zhiMang.new(5))
		azurHurtChara(i, att.mgiAtk * 2.5, sys.HurtType.WEAPON, sys.AtkType.SKILL, "神圣新星", false, p41)

var p41 = 1
var p42 = 2
func upgrade():
	.upgrade()
	if upgraded == 1:
		p41 = 1.4
	if upgraded == 2:
		p42 = 3